home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-06-15 | 517 b | 35 lines | [TEXT/CWIE] |
- // FileFlusher.cp
-
- #ifndef FileFlusher_h
- #include "FileFlusher.h"
- #endif
- #ifndef FileWritingPath_h
- #include "FileWritingPath.h"
- #endif
-
- Task *FileFlusher::operator()( const FileWritingPath& path )
- {
- Assert( !Running() );
- Assert( path.IsOpen() );
-
- ioParam.ioRefNum = path.RefNum();
-
- return this;
- }
-
- void FileFlusher::Launch()
- {
- Assert( !Running() );
- PBFlushFileAsync( this );
- }
-
- void FileFlusher::Kill()
- {
- }
-
- OSErr FileFlusher::Result() const
- {
- Assert( !Running() );
- return ioParam.ioResult;
- }
-